package com.cy.pj.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")
public class PageController {
    @GetMapping("doIndexUI")
    public String doIndexUI(){
        return "starter";
    }


    @RequestMapping("doPageUI")
    public String doPageUI(){
        return "common/page";
    }

    @GetMapping("/{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI){
        return "sys/"+moduleUI;
    }

   /* @RequestMapping("menu/menu_list")
    public String doMenuUI(){
        return "sys/menu_list";
    }

    @RequestMapping("log/log_list")
    public String doLogUI(){
        return "sys/log_list";
    }*/
}

